#!/usr/bin/env bash
if [ -n "${PY36_PATH}" ] 
then
    echo "已经是python3.8环境了"
    return
fi

export PY36_LD_LIBRARY_PATH=${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH=${CONDA_HOME}/envs/python3.8/lib
echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}"

export PY36_PYTHONPATH=${PYTHONPATH}
# caffe
export CAFFE_HOME="$HOME/caffe-quants-3.8/caffe-quant"
export PYTHONPATH="${CAFFE_HOME}/python"
export PYTHONPATH="${PYTHONPATH}:${CAFFE_HOME}/python/lib"
export PYTHONPATH="${PYTHONPATH}:${CAFFE_HOME}/python/lib/rpn"
# onnx
export ONNXQ_HOME=$HOME/onnx-quants-3.8/onnx-quant
export PYTHONPATH=${ONNXQ_HOME}:${PYTHONPATH}
# knight
export KNIGHT_HOME="${HOME}/knight_studio"
export PYTHONPATH=${PYTHONPATH}:${KNIGHT_HOME}

echo "PYTHONPATH=${PYTHONPATH}"

conda activate python3.8
